package cn.wolfcode.service;

import cn.wolfcode.domain.Question;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IQuestionService {
    void save(Question question);

    void delete(Long id);

    void update(Question question);

    Question get(Long id);

    List<Question> listAll();

    // 分页查询的方法
    PageInfo<Question> query(QueryObject qo);

    List<Question> selectQuestion1(Long type1);
    List<Question> selectQuestion2(Long type2);
    List<Question> selectQuestion3(Long type3);

}


